package com.ruoyi.board.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.board.mapper.StockBoardIndustryConsEmMapper;
import com.ruoyi.board.domain.StockBoardIndustryConsEm;
import com.ruoyi.board.service.IStockBoardIndustryConsEmService;
import com.ruoyi.common.core.text.Convert;

/**
 * 东方财富-成份股Service业务层处理
 * 
 * @author leng.xz
 * @date 2024-05-17
 */
@Service
public class StockBoardIndustryConsEmServiceImpl implements IStockBoardIndustryConsEmService 
{
    @Autowired
    private StockBoardIndustryConsEmMapper stockBoardIndustryConsEmMapper;

    /**
     * 查询东方财富-成份股
     * 
     * @param id 东方财富-成份股ID
     * @return 东方财富-成份股
     */
    @Override
    public StockBoardIndustryConsEm selectStockBoardIndustryConsEmById(Long id)
    {
        return stockBoardIndustryConsEmMapper.selectStockBoardIndustryConsEmById(id);
    }

    /**
     * 查询东方财富-成份股列表
     * 
     * @param stockBoardIndustryConsEm 东方财富-成份股
     * @return 东方财富-成份股
     */
    @Override
    public List<StockBoardIndustryConsEm> selectStockBoardIndustryConsEmList(StockBoardIndustryConsEm stockBoardIndustryConsEm)
    {
        return stockBoardIndustryConsEmMapper.selectStockBoardIndustryConsEmList(stockBoardIndustryConsEm);
    }

    /**
     * 新增东方财富-成份股
     * 
     * @param stockBoardIndustryConsEm 东方财富-成份股
     * @return 结果
     */
    @Override
    public int insertStockBoardIndustryConsEm(StockBoardIndustryConsEm stockBoardIndustryConsEm)
    {
        return stockBoardIndustryConsEmMapper.insertStockBoardIndustryConsEm(stockBoardIndustryConsEm);
    }

    /**
     * 修改东方财富-成份股
     * 
     * @param stockBoardIndustryConsEm 东方财富-成份股
     * @return 结果
     */
    @Override
    public int updateStockBoardIndustryConsEm(StockBoardIndustryConsEm stockBoardIndustryConsEm)
    {
        return stockBoardIndustryConsEmMapper.updateStockBoardIndustryConsEm(stockBoardIndustryConsEm);
    }

    /**
     * 删除东方财富-成份股对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteStockBoardIndustryConsEmByIds(String ids)
    {
        return stockBoardIndustryConsEmMapper.deleteStockBoardIndustryConsEmByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除东方财富-成份股信息
     * 
     * @param id 东方财富-成份股ID
     * @return 结果
     */
    @Override
    public int deleteStockBoardIndustryConsEmById(Long id)
    {
        return stockBoardIndustryConsEmMapper.deleteStockBoardIndustryConsEmById(id);
    }
}
